<?php /* @var $this Controller */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />
    
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->

<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/public/css/styles.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>
<?php require 'top_line.php'; ?>

<div id="mainmenu_line">
	<div id="mainmenu">
		<?php $this->widget('MainMenu',array(
			'items'=>array(
				array('label'=>'Главная', 'url'=>array('/main/index')),
				//array('label'=>'About', 'url'=>array('/main/page', 'view'=>'about')),
				array('label'=>'Новости', 'url'=>array('/news')),
				array('label'=>'Акции/скидки', 'url'=>array('/actions')),
				array('label'=>'Афиша', 'url'=>array('/afisha')),
				array('label'=>'Бизнес Информация', 'url'=>array('/business')),
				array('label'=>'Частные Объявления', 'url'=>array('/board')),
				array('label'=>'Недвижимость', 'url'=>array('/realestate')),
				array('label'=>'Автовитрина', 'url'=>array('/auto')),
				array('label'=>'Работа', 'url'=>array('/work')),
				array('label'=>'Детские Товары', 'url'=>array('/baby')),
				array('label'=>'Login', 'url'=>array('/main/login'), 'visible'=>Yii::app()->user->isGuest),
				array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/main/logout'), 'visible'=>!Yii::app()->user->isGuest),
                //array('label'=>'Суперадмин', 'url'=>array('/superadmin'), 'visible'=>Yii::app()->user->checkAccess(1)),
                array('label'=>'Админка', 'url'=>array('/admin'), 'visible'=>Yii::app()->user->checkAccess(2))
			),
		)); ?>
	</div><!-- mainmenu -->
</div><!-- mainmenu_line -->


<div id="page">

<div class="breadcrumbs_div">
	<?php if(isset($this->breadcrumbs)):?>
		<?php $this->widget('zii.widgets.CBreadcrumbs', array(
			'links'=>$this->breadcrumbs,
                        'homeLink'=>false,
		)); ?><!-- breadcrumbs -->
	<?php endif?>
</div>

	<?php echo $content; ?>
  
</div><!-- page -->

<?php require 'footer.php'; ?>

</body>
</html>
